package adv411;

/**
 * @author oldliu
 * @since 1.0
 */
public class Hotel {
    public String name;
    public String addr;
    public Zhizhao zhigao=new Zhizhao("包河949392","2020-1----2025-12");
    public class Zhizhao{
        public String bianhao;
        public String qizhi;

        public Zhizhao(String bianhao, String qizhi) {
            this.bianhao = bianhao;
            this.qizhi = qizhi;
        }

        public void show(){
            System.out.println("执照编号是"+bianhao+",起止日期是"+qizhi);
            System.out.println("发给了：");
            Hotel.this.show();
        }
    }

    public void show(){
        System.out.println("这家宾馆叫"+name+",位于"+this.addr);
    }
}
